<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />                     
<title>后台管理 -- Talking</title>
<link rel="stylesheet" href="./static/css/frame.css" />
</head>

<body>
<div id="content">
    <div class="title">用户 » 用户组</div>                       
    <div class="main">
        <h3>用户组</h3> 
        <form action="user_group.php" method="post" name="form"> 
        <table cellpadding="0" cellspacing="0" class="list">
            <tbody>
                <tr>
                    <td width="150">用户组名称</td>
                    <td align="center">允许发新帖</td>
                    <td align="center">允许发表回复</td>
                    <td align="center">允许查看附件</td>
                </tr>
                {{section name=n loop=$groups}}                                                       
                <tr>
                    <td>
                    {{$groups[n].GroupName}}
                    <input type="hidden" name="groupid[ ]" value="{{$groups[n].GroupID}}" />
                    </td>
                    <td align="center">
                        <select class="select2" name='allowPost[ ]'>
                            <option value="0" {{if $groups[n].GroupAllowPost eq '0' }} selected="selected" {{/if}}>禁止</option>
                            <option value="1" {{if $groups[n].GroupAllowPost eq '1' }} selected="selected" {{/if}}>允许</option>
                        </select>
                    </td>
                    <td align="center">
                        <select class="select2" name="allowReply[ ]">     
                            <option value="0" {{if $groups[n].GroupAllowReply eq '0' }} selected="selected" {{/if}}>禁止</option>
                            <option value="1" {{if $groups[n].GroupAllowReply eq '1' }} selected="selected" {{/if}}>允许</option>
                        </select>
                    </td>
                    <td align="center">                                   
                        <select class="select2" name="allowWatchAttach[ ]"> 
                            <option value="0" {{if $groups[n].GroupAllowWatchAttach eq '0' }} selected="selected" {{/if}}>禁止</option>
                            <option value="1" {{if $groups[n].GroupAllowWatchAttach eq '1' }} selected="selected" {{/if}}>允许</option>
                        </select>
                    </td>
                </tr>
                {{/section}}
            </tbody>
        </table>
        <p>
            <input type="submit" class="button_submit" name="submit" value="提交" />
            <span>{{$tip}}</span>  
        </p>
        </form> 
    </div>
</div>
</body>
</html>
